package com.pmsystem.dao;

import com.pmsystem.pojo.FreeCar;
import com.pmsystem.pojo.FreeCarExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FreeCarMapper {
    long countByExample(FreeCarExample example);

    int deleteByExample(FreeCarExample example);

    int insert(FreeCar record);

    int insertSelective(FreeCar record);

    List<FreeCar> selectByExample(FreeCarExample example);

    int updateByExampleSelective(@Param("record") FreeCar record, @Param("example") FreeCarExample example);

    int updateByExample(@Param("record") FreeCar record, @Param("example") FreeCarExample example);

	/**  
	 * <p>Title: insertFreeCar</p >  
	 * <p>Description: 插入业主车辆数据</p >  
	 * @author 魏家洛
	 * @param freeCar
	 * @return  
	 */  
	boolean insertFreeCar(FreeCar freeCar);

	/**  
	 * <p>Title: selectCarByUserId</p >  
	 * <p>Description: </p >  
	 * @author 魏家洛
	 * @param userId
	 * @return  
	 */  
	List<FreeCar> selectCarByUserId(@Param("userId") Integer userId);

	/**  
	 * <p>Title: isExistLicense</p >  
	 * <p>Description: 检查是否存在对应车牌号数据/p >  
	 * @author 魏家洛
	 * @param license
	 * @return  
	 */  
	int isExistLicense(@Param("license") String license);
}